package com.accp.vehiclecare.action.syhaction;

import com.accp.vehiclecare.biz.syhbiz.EndcheckBiz;
import com.accp.vehiclecare.pojo.Endcheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("api/end")
public class EndcheckAction {

    @Autowired
    private EndcheckBiz biz;

    @PostMapping
    private Map<String,Object> jg(@RequestBody Endcheck endcheck) throws Exception{
        Map<String,Object> m = new HashMap<>();
        biz.jg(endcheck);
        m.put("code",200);
        m.put("msg","ok");

        return m;
    }

    @GetMapping("countRework")
    private Integer countRework(String billNo){
        return biz.countRework(billNo);
    }
}
